package com.xxxx.springbootsecurity02.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
public class SysMenuController {

    @PostMapping("/list")
    @PreAuthorize("hasAuthority('system:order:list')")
    public String findMenuList() {
        return "menu...";
    }
}
